gl: Call make_current() before doing any GL work
authorBenjamin Otte <otte@redhat.com>
Fri, 22 Oct 2021 15:37:34 +0000 (17:37 +0200)
committerBenjamin Otte <otte@redhat.com>
Fri, 22 Oct 2021 15:51:40 +0000 (17:51 +0200)
commitb912e84df7ef7c0a4c298ea9f712cc5bf5f4aa82
tree2d08184919f1b853361b1293b55aac23fe647a32
parent3c9c7a0e727eb6380bee29120736dba6da2232a3
gl: Call make_current() before doing any GL work

But don't call it too early, we only want to call it once we have
prepared the target.

This way, we guarantee that a GL context is always available and that it
is bound to the correct target.
gsk/gl/gskglrenderer.c